import Vue from "vue";
import Vuex from "vuex";
// 使用插件
Vue.use(Vuex);

// 引入小仓库
import list from "./list";
import user from "./user";
import area from "./area";

// 创建并暴露store
export default new Vuex.Store({
  // 实现vuex的模块化开发
  modules: {
    list,
    user,
    area,
  },
});
